/**
 * @author mjy
 * @date 2021/11/01
 * @description
 */
public class TestClassLoader {


    public static void main(String[] args) {
        //读取系统类加载器
        ClassLoader systemClassLoader = ClassLoader.getSystemClassLoader();
        System.out.println(systemClassLoader);

        //获取系统类加载器的父类加载器-->扩展类加载器
        ClassLoader parent = systemClassLoader.getParent();
        System.out.println(parent);

        //获取扩展类加载器的父类，根加载器
        ClassLoader parent1 = parent.getParent();
        System.out.println(parent1);

    }


}
